package org.sapling.data.enums;

import org.apache.commons.lang3.StringUtils;
import org.sapling.data.api.ExpErrorCode;

import lombok.Data;

/**
 * 
* @ClassName: DataTransExpCodeEnum  
* @Description: 数据翻译异常码
* @author DcfZero 
* @date 2020年6月27日  
*
 */
public enum DataTransExpCodeEnum implements ExpErrorCode{
	
	/**
	 * @author DcfZero
	 * 	错误码100
	 * 	未初始化数据源
	 */
	DATASOURCETYPE_ISNULL("100","未初始化数据源"),
	/**
	 * @author DcfZero
	 * 	错误码101
	 * 	FieldType字段类型为空
	 */
	FIELDTPYE_ISNULL("101","FieldType字段类型为空"),
	;

	
	private final String code;
	
	private final String description;
	
	/**
	 * 
	 * @param code 错误码
	 * @param description 描述
	 */
	private DataTransExpCodeEnum(final String code,final String description) {
		this.code = code;
		this.description = description;
	}
	
	@Override
	public String getCode() {
		return this.code;
	}

	@Override
	public String getDescription() {
		return this.description;
	}
	
}
